package machinery.factory;

import machinery.Machinery;
import machinery.Tractor;

/**
 * 工厂方法模式：拖拉机工厂实现
 */
public class TractorFactory implements MachineryFactory {
    @Override
    public Machinery createMachinery() {
        System.out.println("创建拖拉机");
        return new Tractor("智能拖拉机001");
    }
} 